// samsting : this file is auto create.

#include "Ecs/2014-05-26/DescribeSecurityGroupsRequest.h"

namespace aliyun { namespace Ecs {

DescribeSecurityGroupsRequest::DescribeSecurityGroupsRequest() : RpcAcsRequest("Ecs", "2014-05-26", "DescribeSecurityGroups") {
}

int64 DescribeSecurityGroupsRequest::GetOwnerId(void) const {
  return OwnerId_;
}
void DescribeSecurityGroupsRequest::SetOwnerId(int64 OwnerId) {
  OwnerId_ = OwnerId;
  PutQueryParameter("OwnerId", string_ValueOfInt64(OwnerId_));
}

const string& DescribeSecurityGroupsRequest::GetResourceOwnerAccount(void) const {
  return ResourceOwnerAccount_;
}
void DescribeSecurityGroupsRequest::SetResourceOwnerAccount(const string& ResourceOwnerAccount) {
  ResourceOwnerAccount_ = ResourceOwnerAccount;
  PutQueryParameter("ResourceOwnerAccount", ResourceOwnerAccount_);
}

int64 DescribeSecurityGroupsRequest::GetResourceOwnerId(void) const {
  return ResourceOwnerId_;
}
void DescribeSecurityGroupsRequest::SetResourceOwnerId(int64 ResourceOwnerId) {
  ResourceOwnerId_ = ResourceOwnerId;
  PutQueryParameter("ResourceOwnerId", string_ValueOfInt64(ResourceOwnerId_));
}

const string& DescribeSecurityGroupsRequest::GetVpcId(void) const {
  return VpcId_;
}
void DescribeSecurityGroupsRequest::SetVpcId(const string& VpcId) {
  VpcId_ = VpcId;
  PutQueryParameter("VpcId", VpcId_);
}

int DescribeSecurityGroupsRequest::GetPageNumber(void) const {
  return PageNumber_;
}
bool DescribeSecurityGroupsRequest::SetPageNumber(int PageNumber) {
  if(PageNumber < 1) {
    return false;
  }
  PageNumber_ = PageNumber;
  PutQueryParameter("PageNumber", string_ValueOfInt(PageNumber_));
  return true;
}

int DescribeSecurityGroupsRequest::GetPageSize(void) const {
  return PageSize_;
}
bool DescribeSecurityGroupsRequest::SetPageSize(int PageSize) {
  if(PageSize < 1) {
    return false;
  }
  if(PageSize > 100) {
    return false;
  }
  PageSize_ = PageSize;
  PutQueryParameter("PageSize", string_ValueOfInt(PageSize_));
  return true;
}

const string& DescribeSecurityGroupsRequest::GetOwnerAccount(void) const {
  return OwnerAccount_;
}
void DescribeSecurityGroupsRequest::SetOwnerAccount(const string& OwnerAccount) {
  OwnerAccount_ = OwnerAccount;
  PutQueryParameter("OwnerAccount", OwnerAccount_);
}

const string& DescribeSecurityGroupsRequest::GetSecurityGroupIds(void) const {
  return SecurityGroupIds_;
}
void DescribeSecurityGroupsRequest::SetSecurityGroupIds(const string& SecurityGroupIds) {
  SecurityGroupIds_ = SecurityGroupIds;
  PutQueryParameter("SecurityGroupIds", SecurityGroupIds_);
}


} } // namespace aliyun { namespace Ecs {

// end of file 
